package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 帖子用户喜爱关联对象 ic_post_user_like
 * 
 * @author ruoyi
 * @date 2024-07-11
 */
public class IcPostUserLike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long puId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long postId;

    /** 0踩1赞 */
    @Excel(name = "0踩1赞")
    private Integer liked;

    public void setPuId(Long puId) 
    {
        this.puId = puId;
    }

    public Long getPuId() 
    {
        return puId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }

    public void setLiked(Integer liked)
    {
        this.liked = liked;
    }

    public Integer getLiked()
    {
        return liked;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("puId", getPuId())
            .append("userId", getUserId())
            .append("postId", getPostId())
            .append("liked", getLiked())
            .toString();
    }
}
